<?php
session_start();
require_once(dirname(dirname(__FILE__))."/include/init.php");
require_once(dirname(dirname(__FILE__))."/include/mysql.php");
require_once(dirname(dirname(__FILE__))."/include/function.php");
$webconfig = lyg::readArr("web");
$eptime_appid = $webconfig['wx_appid'];//微信公众号APPID
$eptime_secret = $webconfig['wx_secret'];//微信公众号密钥
$eptime_url=$webconfig['wx_url'];//系统安装地址，加http://或者https://
	$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$eptime_appid.'&redirect_uri='.$eptime_url.'/oauth2.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect';
	header("Location:".$url);
?>
